import { Iresult } from '#/axios';
import { defHttp } from '@/utils/http/axios';

enum Api {
  LOGIN_URL = '/Login',
  CAPTCHA_URL = '/files/captcha',
  USERINFO_URL = '/Users/Info',
}
// 登录
export const Login = (data) => defHttp.post<Iresult>({ url: Api.LOGIN_URL, data });
// 验证码
export const getCaptcha = () => defHttp.get<Iresult>({ url: Api.CAPTCHA_URL });
// 用户信息
export const getUserInfo = () => defHttp.get<Iresult>({ url: Api.USERINFO_URL });
